package cn.ztelovecly.codegeneratorplugin.action;

import cn.ztelovecly.codegeneratorplugin.component.AppComponent;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;

/**
 * Created by zhaotianen on 2017/2/26.
 */
public class AppAction extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        // TODO: insert action logic here
        Application application= ApplicationManager.getApplication();
        AppComponent appComponent=application.getComponent(AppComponent.class);
        appComponent.sayHelloWorld();
    }
}
